package ink.onei.production.mapper;

import ink.onei.production.entity.Dept;
import ink.onei.production.entity.Staff;
import ink.onei.production.vo.StaffAndDeptVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: dang
 * @Description: TODO
 * @Date: 2023/12/27 14:42 星期三
 */
@Repository
public interface IDepartmentMapper {
    List<Dept> getDeptAll();

    List<StaffAndDeptVO> getStaffAll();

    Dept getDeptById(@Param("id") Integer id);

    Integer addDept(@Param("dept") Dept dept);

    Integer DelDeptById(@Param("id") Integer id);

    Integer EditDeptById(@Param("dept") Dept dept);

    List<Dept> deptSearch(@Param("dept") Dept dept);

    Integer deptBatch(@Param("deptList") List<Dept> deptList);

    Integer EditStaffById(@Param("staff") Staff staff);
}
